<!---
@自动生成 BY Kupe框架 www.kupebank.com
#date : 2017-10-25 13:29:52
#path : app/template/admin/index.login.html
--->

<!DOCTYPE html>
<html>	
<head>
<title>用户后台登陆!!!</title>
<meta name="viewport" content="width=device-width, initial-scale=1">


<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>


<meta name="keywords" content="" />
<link href="{$SKIN}login/css/style.css" rel='stylesheet' type='text/css' />
<!--webfonts-->

<!---
<link href='http://fonts.useso.com/css?family=PT+Sans:400,700,400italic,700italic|Oswald:400,300,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.useso.com/css?family=Exo+2' rel='stylesheet' type='text/css'>
<script src="http://ajax.useso.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
--->
<!--//webfonts-->

<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
</head>

<body>
<script>
function gjson(d){
	if(d.substr(0,1) != '{'){
		$('body').before(d);
	}
	d = $.parseJSON(d);	
	return d;
}

$(document).ready(function(c) {
	$('.close').on('click', function(c){
		$('.login-form').fadeOut('slow', function(c){
	  		$('.login-form').remove();
		});
	});	   

	$('.submit').click(function(){
		user = $('[name=username]').val();
		password = $('[name=password]').val();
		url = "{url c='index'}";
		if(!user){
			alert("请输入用户名");
			$('[name=username]').focus();
			return false;
		}
		if(!password){
			alert("请输入密码");
			$('[name=password]').focus();
			return false;
		}
		$.post(url,{'m':'dologin','user':user,'password':password},function(back){
			d = gjson(back);
			if(d.status){
				$('#js-server-helpinfo').html("登陆成功");
				setTimeout(function(){
					self.location.href=d.url;
				},2000);
			}else{
				$('#js-server-helpinfo').html(d.msg);
			}
		});
	});
});
</script>


 <!--SIGN UP-->
 <h1>用户后台登陆!!!</h1>
<div style="text-align:center;color:red" class="help-block u-errormessage" id="js-server-helpinfo">&nbsp;</div>
						
<div class="login-form">


	<div class="close"> </div>
		<div class="head-info">
			<label class="lbl-1"> </label>
			<label class="lbl-2"> </label>
			<label class="lbl-3"> </label>
		</div>
			<div class="clear"> </div>
	<div class="avtar">
		<img src="{$SKIN}login/images/avtar.png" />
	</div>
			<form>
					<input type="text" class="text" name="username" value="Username" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Username';}" >
						<div class="key">
					<input type="password" name="password" value="password" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Password';}">
						</div>
			</form>
			 
	<div class="signin">
		<input type="submit" class="submit" value="Login" >
	</div>
</div>
 <div class="copy-rights">
					<p>Copyright &copy; 2017. 陈阳昇工作室 All rights reserved.<a href="http://www.kupebank.com/" target="_blank" title="777模板">陈阳昇工作室</a></p>
			</div>

</body>
</html>